include io16.inc
.data
    msg db 'Press ESC to Exit', 0

.code
main:
    mov ax, @data
    mov ds, ax
    
    lea eax, msg
    call dispmsg     
    
lop:
    call readc
    call dispc
    cmp al, 1bh
    je done
    jmp lop
done:
    exit 0
end main